﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="WorkFlow_WFProcess_FlowPaint" Codebehind="FlowPaint.ascx.cs" %>

<script language="javascript" type="text/javascript"  src="<%=Page.ResolveClientUrl("~/") %>Workflow/WFProcess/js/NodeSelect/context.js"></script>
<script language="javascript" type="text/javascript"  src="<%=Page.ResolveClientUrl("~/") %>Workflow/WFProcess/js/NodeSelect/webflow.js"></script>
<script language="javascript" type="text/javascript"  src="<%=Page.ResolveClientUrl("~/") %>Workflow/WFProcess/js/NodeSelect/function.js"></script>
<script language="javascript" type="text/javascript"  src="<%=Page.ResolveClientUrl("~/") %>Workflow/WFProcess/js/NodeSelect/movestep.js"></script>
<script language="javascript" type="text/javascript" src="<%=Page.ResolveClientUrl("~/") %>Workflow/Scripts/jquery-1.4.1.js"></script>

<table border=0 style="width:100%;height:100%">
    <tr>	
        <td width="100%" height="100%" valign="top">
        
                    <div style="height:400px;overflow:scroll">
            <table cellspacing="0" cellpadding="0" border="0">
                <tr>
                    <td  width="800" height="500" valign="top" onclick="return false;" oncontextmenu='return false;' valign=top align=left>
                        <v:group ID="FlowVML"  style="width:100%;height:100%;position:absolute;" coordsize="2000,2000">
                        </v:group>
                    </td>
                </tr>			
            </table>
            </div>
        </td>
    </tr>
</table>
<input type="hidden" id="hidJobTemplateID" runat="server" />
<input type="hidden" name=FlowXML onpropertychange='javascript:if(AUTODRAW) redrawVML();' />
<script language="javascript" type="text/javascript" >

function loadFlow()
{
    var fid = document.getElementById("<%=hidJobTemplateID.ClientID %>").value;    
    $.ajax({
        type: "POST",
        url: '<%=Page.ResolveClientUrl("~/") %>WorkFlow/WFDesigner/JSON/Flow.ashx',
        data: "ActionType=0&FlowID=" + fid,
        success: function (msg) {
            FlowXML.value = msg;
        }
    });
}
loadFlow();
function loadFlow2(id) {
    document.getElementById("<%=hidJobTemplateID.ClientID %>").value = id;
}
</script>